﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Office.Interop.Excel;
using Tunnel_Cross_Section.menue_frm;
using System.Windows.Forms;
using Tunnel_Cross_Section.option_frm;

namespace Tunnel_Cross_Section.相关类
{
    public class ReportHelper
    {
        public Mfrm mfrm { get; set; }
        public do_section_frm do_frm { get; set; }

        public bool IsSpecial
        {
            get;
            set;
        }


        public void CreateReport(string path)
        {
            ReportGeneralHelper ReportHelper = null;
            if (IsSpecial == false)
            {
                ReportHelper = new ReportGeneralHelper();
              
            }
            else
            {
                ReportHelper = new ReportSepcialHelper();
            }
            ReportHelper.mfrm = this.mfrm;
            ReportHelper.do_frm = this.do_frm;
            ReportHelper.CreateReport(path);
        }
    }

  
}
